package com.lovo.service;

import com.lovo.pojo.UserDO;

public interface UserService {
    /**
     * 根据用户名和密码查询
     * @param username
     * @param pwd
     * @return
     */
    UserDO getByUsernameAndPwd(String username, String pwd);

    /**
     * 存钱
     */
    void saveMoney(int id,double balance);

    /**
     * 取钱
     */
    void getMoney(int id,double balance) throws Exception;

    /**
     * 转账
     */
    void transferMoney(int id, String username, double balance) throws Exception ;

    /**
     * 注册
     */
    void register(String username,String pwd,String ConfirmPwd) throws Exception;
}
